import { createContext } from 'react';
import type { UserInfo } from '../api/dto/user';

interface UserContextType {
  isLoggedIn: boolean;
  userInfo: UserInfo | null;
  login: (userInfo: UserInfo) => void;
  logout: () => Promise<void>;
}

export const UserContext = createContext<UserContextType | undefined>(undefined); 